﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<iBuproModel.StudentPlan>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Student Plans
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:Html.Translate("studentPlans")%></h2>

    <table>
    <thead>
        <tr>
            <th></th>
            <th>
               <%: Html.Translate("name")%>
            </th>
            <th>
               <%: Html.Translate("shortcut")%>
            </th>
        </tr>
    </thead>

    <tbody>
    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink(Html.Translate("edit"), "Edit", new { id=item.Id }) %> |
                <%: Html.ActionLink(Html.Translate("detail"), "Details", new { id=item.Id })%> |
                <%: Html.ActionLink(Html.Translate("delete"), "Delete", new { id=item.Id })%>
            </td>
            <td>
                <%: item.Name %>
            </td>
             <td>
                <%: item.Shortcut %>
            </td>
        </tr>
    
    <% } %>
    </tbody>
    </table>

    <p>
        <%: Html.ActionLink(Html.Translate("createNew"), "Create") %>
    </p>

</asp:Content>

